package com.deloitte.sapnetweaver.model
{

	
	
	import mx.collections.ArrayCollection;
	
	import spark.components.NavigatorContent;


	[Bindable]
	public class ModelLocator 
	{
		private static var modelLocator : ModelLocator;

		//-----------------------------------------------------------
		public static var accSelectedIndex:int=0;
		
		public static function getInstance():ModelLocator
		{
			if ( modelLocator == null )
				modelLocator = new ModelLocator(new Enforcer());
			return modelLocator;
		}

		//-----------------------------------------------------------
		public function ModelLocator(enforcer:Enforcer):void
		{
			if ( modelLocator != null )
				throw new Error( 'Only one ModelLocator instance should be instantiated' );
		}
		public var commonModel:CommonModel = new CommonModel();		   
	}
}
class Enforcer{}
